import http from "@/utils/request";


export function hrLogin(val) {
    return http({
        method: "post",
        url: '/hr/login',
        data: val
    })
}

export function validateCodeImage(val) {
    return http({
        method: "get",
        url: '/hr/validateCodeImage',
        params: val
    })
}

export function register(val) {
    return http({
        method: "post",
        url: '/hr/register',
        data: val
    })
}

export function checkLogin() {
    return http({
        method: "get",
        url: '/hr/checkLogin'
    })
}

export function getLoginInfo() {
    return http({
        method: "get",
        url: '/hr/getLoginInfo'
    })
}


export function updateInfo(val) {
    return http({
        method: "post",
        url: '/hr/updateInfo',
        data: val
    })
}


export function getSubHrs(val) {
    return http({
        method: "get",
        url: '/hr/getSubHrs',
        params: val
    })
}


export function changeStatus(val) {
    return http({
        method: "get",
        url: '/hr/changeStatus',
        params: val
    })
}

export function hrCompanyCheckQuery(hrId){
    return http({
        method:"get",
        url:"/hr/hrCompanyCheck",
        params:{hrId}
    })
}

export function submitCompanyDataQuery(data){
    return http({
        method:"post",
        url:"/hr/submitCompanyData",
        data:data,
        headers:{
            'Content-Type': 'multipart/form-data'
        }
    })
}

export function emailValidateCode(val) {
    return http({
        method: "get",
        url: '/hr/emailValidateCode',
        params: val
    })
}


export function logOut() {
    return http({
        method: "get",
        url: '/hr/logOut'
    })
}